home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / dosex / Makefile < prev    next >
Encoding:
Makefile  |  2000-01-01  |  1.1 KB  |  55 lines

  1. #######################################################################
  2. #
  3. # Makefile to compile all examples and convert them to LaTeX
  4. #######################################################################
  5.  
  6. # Compiler
  7. PP=ppc386
  8.  
  9. # Unit directory
  10. # UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
  11.  
  12.  
  13. # Any options you wish to pass.
  14. PPOPTS=
  15.  
  16. # Script to convert the programs to LaTeX examples which can be included.
  17. PP2TEX=../pp2tex
  18.  
  19. # Script to collect all examples in 1 file.
  20. MAKETEX=make1tex
  21.  
  22. #######################################################################
  23. # No need to edit after this line.
  24. #######################################################################
  25.  
  26. ifdef UNITDIR
  27. PPOPTS:=$(PPOPTS) -Up$(UNITDIR);
  28. endif
  29.  
  30. .SUFFIXES: .pp .tex
  31.  
  32. .PHONY: all tex clean
  33.  
  34. OBJECTS=ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 ex11 ex12 ex13 ex14 \
  35. #        ex15 ex16
  36.  
  37. TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
  38.  
  39. all : $(OBJECTS)
  40.  
  41. tex : $(TEXOBJECTS)
  42.  
  43. onetex : tex
  44.     $(MAKETEX) $(TEXOBJECTS)
  45.  
  46. clean : 
  47.     rm -f *.o *.s $(OBJECTS) $(TEXOBJECTS)
  48.  
  49. $(OBJECTS): %: %.pp
  50.     $(PP) $(PPOPTS) $*
  51.  
  52. $(TEXOBJECTS): %.tex: %.pp head.tex foot.tex
  53.     $(PP2TEX) $*
  54.